<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>Untitled Document</title>
    	<link href="" rel="stylesheet" type="text/css" />
		<script type="text/javascript">
            function gotoUrl()
            {
               var contentFrame = parent.document.getElementById("baiduframe");
               //contentFrame.src = url;
			   document.getElementById("ifrmaetext").value=contentFrame.src;
			             }
						 
			 function aaa(){	
				var links=parent.document.getElementsByTagName('link');;
				for(var i=0;i<links.length;i++)
				if(links[i].rel.toLowerCase()=='stylesheet')
				{
					var temp_css='<link type="text/css" rel="stylesheet" href="'+links[i].href+'"></link>'
					document.body.innerHTML+=temp_css;	
				}
			}  
			setTimeout(aaa,1); 
        </script>
	</head>
	<body>
		<div id="iframe" class="iframecss">
			This is Sever content,<br>
			Dynamic Change css .<br>
			<input id="ifrmaetext" type="text" value=""><br>
			<input type="button" value="click" onclick="gotoUrl()">
		</div>
	</body>
</html>
